package com.woniu.service.command;

import com.woniu.outlet.elasticSearch.po.Fund;
import com.woniu.util.ApplicationContextHolder;
import lombok.Data;

import java.util.List;

/**
 * @description:
 * @author: my
 * @time: 2021/5/7 9:57
 */
@Data
public class FundAllCommand {
    private FundAllCommandHandler handler;

    public FundAllCommand(){
        this.handler =
                ApplicationContextHolder.getApplicationContext().getBean(FundAllCommandHandler.class);
    }

    public List<Fund> execute(){
        return this.handler.action(this);
    }
}
